<%@ page language = "java" contentType = "text/html; charset=UTF-8"
    pageEncoding = "UTF-8" %>
<%@ include file = "check.jsp" %>
<%@ include file = "conn.jsp" %>
<%
if (id < 1) {
	response.sendRedirect("login.jsp");
	return;
}

String sql = "SELECT username, email FROM members WHERE id = " + id;

ResultSet rs = stmt.executeQuery(sql);

if (rs == null || !rs.next()) {
	response.sendRedirect("login.jsp");
	return;
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0033)http://k.yingjiesheng.com/center/ -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>会员中心-应届生求职网</title>
<meta name="keywords" content="">
<meta name="description" content=" ">

<meta http-equiv="Content-Language" content="zh-CN">
<link rel="Shortcut Icon" href="http://k.yingjiesheng.com/favicon.ico">
<link href="./css/main.css" rel="stylesheet" type="text/css">
<script language="javascript" type="text/javascript" src="./js/script_common.js"></script>
<script language="javascript" type="text/javascript" src="./js/script_menu.js"></script>
</head>
<body> 
<div id="header">
	<div class="headerwarp">
		<h1 class="logo"><a href="#"><img src="./image/logo.gif" alt="我的应届生"></a></h1>
		<ul class="menu">
			<li><a href="#">我的应届生</a></li>
			<li><a href="personal.html" target="_blank">我的简历</a></li>
						<li><a href="#" target="_blank">BBS</a></li>
			<li><a href="#" target="_blank">开心应届生</a></li>
			<li><a href="#">更多</a></li>
		</ul>
		<div class="nav_account">
			<a href="#" class="loginName"><%= rs.getString("username") %></a>，
			<a href="#">退出</a>
		</div>
	</div>
</div>

<script>
<!--
function subop(obj){
	var tLeft = obj.offsetLeft;
	var tTop = obj.offsetTop + 38;
	while(obj=obj.offsetParent) {
		tLeft+=obj.offsetLeft;
		tTop+=obj.offsetTop;
	}
	if(document.getElementById('ucmenu').style.display == 'none'){
		document.getElementById('ucmenu').style.cssText = 'display:block; left:' + tLeft + 'px; top:' + tTop + 'px;';
	}
	else{
		document.getElementById('ucmenu').style.cssText = 'display:none;';
	}
}
-->
</script>

<div id="wrap">
	<div id="main">
		<div id="mainarea" class="s_clear">
<div id="nav">
	当前位置：<a href="#" target="_blank">应届生求职网</a> &#187; 我的应届生
</div>

<div id="mainNav">
	<div class="s_clear">
		<div class="accountInfo">
			<h2>
				我的应届生ID档案
			</h2>

			<div class="composer_header s_clear">
				<div class="composer">
					应届生登录ID：<strong><%= rs.getString("username") %></strong>，<a href="#">修改密码</a><br>
					注册邮箱：<%= rs.getString("email") %>
					<ul class="tabMenuRound s_clear">
						<li><a id="tabMenu1" href="#" onclick="show2(&#39;1&#39;)" class="menuOn">简历/申请表</a></li>
						<li><a id="tabMenu2" href="#" onclick="show2(&#39;2&#39;)">我的开心应届生</a></li>
						<li><a id="tabMenu3" href="#" onclick="show2(&#39;3&#39;)">我的应届生BBS</a></li>
					</ul>
					<ul id="menuList1" class="setting s_clear">
						<li><a href="personal.html" target="_blank">我的简历</a></li>
											</ul>
					<ul id="menuList2" class="setting s_clear" style="display: none;">
						<li><a href="#" target="_blank">我的开心应届生首页</a></li>
						<li><a href="#" target="_blank">我的好友</a></li>
						<li><a href="#" target="_blank">邀请好友</a></li>
						<li><a href="#" target="_blank">隐私设置</a></li>
					</ul>
					<ul id="menuList3" class="setting s_clear" style="display: none;">
						<li><a href="#" target="_blank">我的帖子</a></li>
						<li><a href="#" target="_blank">我收藏的帖子</a></li>
						<li><a href="#" target="_blank">BBS个人设置</a></li>
					</ul>
					<script>
						function show2(id) {
							for ( i=1; i<4 ; i++ ) {
								document.getElementById("menuList"+i).style.display = "none";
								document.getElementById("tabMenu"+i).className = "";
							}
							document.getElementById("menuList"+id).style.display = "block";
							document.getElementById("tabMenu"+id).className = "menuOn";
						}
					</script>
				</div>
			</div>
		</div>
	</div>
	
	<h2>个人求职中心</h2>
	<ul class="treeMenu">
		<li><a id="treeMenu1" onclick="showHidden(&#39;1&#39;);" class="menuAdd">个人服务管理</a></li>
		<ul id="tree_menu1" style="display: none">
			<li><a href="#" target="_blank">本站职位申请记录</a></li>
			<li><a href="#" target="_blank">我的YJS帐户</a></li>
			<li><a href="#" target="_blank">我的支付订单</a></li>
			<li><a href="#" target="_blank">财务记录</a></li>
			<li><a href="#" target="_blank">短信信息订阅</a></li>
			<li><a href="#" target="_blank">我的短信信息</a></li>
			<li><a href="#" target="_blank">宣讲会提醒订阅</a></li>
			<li><a href="#" target="_blank">我订阅的宣讲会</a></li>
			<li><a href="#" target="_blank">网申提醒订阅</a></li>
			<li class="bottom"><a href="#" target="_blank">我订阅的网申</a></li>
		</ul>
		<li><a id="treeMenu2" onclick="showHidden(&#39;2&#39;);" class="menuAdd">求职记事本</a></li>
		<ul id="tree_menu2" style="display: none">
			<li><a href="#">我的求职记事本</a></li>
			<li class="bottom"><a href="#">信息标签管理</a></li>
		</ul>
	</ul>
	<script>
		function showHidden(id) {
			var objDiv = document.getElementById("tree_menu"+id);
			if ( objDiv.style.display == "none" ) {
				objDiv.style.display = "";
				document.getElementById("treeMenu"+id).className = "menuMinus";
			}
			else {
				objDiv.style.display = "none";
				document.getElementById("treeMenu"+id).className = "menuAdd";
			}
		}
	</script>

		<h2>
		<a href="personal.html" class="floatright weak">进入我的简历中心</a>
		<a href="personal.html" id="viewcv" onmouseover="showMenu(this.id)">我的简历 <img src="./images/more.gif"></a>
		&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" target="_blank" style="font-size:12px;color:#f00;font-weight:normal;">“我的简历”和“我的申请表”有什么区别？</a>
	</h2>
	<table cellpadding="0" cellspacing="0" class="formtable">
		<thead>
			<tr>
				<td>简历名称</td>
				<td width="40">浏览</td>
				<td width="60">语种</td>
				<td width="60">完成程度</td>
				<td width="40">评语</td>
				<td width="100">更新时间</td>
				<td width="100">操作</td>
			</tr>
		</thead>
<% sql = "SELECT id, resume_name, lang, visit_count, modify_time FROM resume WHERE member_id = " + id;

   rs = stmt.executeQuery(sql);

   int i = 0;
   while(rs.next()) {
%>
			<tr class="bg<%= i++%>">
				<td><a href="#" target="_blank"><%= rs.getString("resume_name") %></a></td>
				<td><%= rs.getInt("visit_count") %></td>
				<td><%= (rs.getBoolean("lang")) ? "中文" : "English" %></td>
				<td>25%</td>
				<td>0</td>
				<td><%= rs.getString("modify_time") %></td>
				<td><a href="./resume.jsp?resumeid=<%= rs.getInt("id") %>" target="_blank">修改</a> / <a href="./resumepreview.jsp?resumeid=<%= rs.getInt("id") %>" target="_blank">预览</a></td>
			</tr>
<%} %>
	</table>
	<div class="resume">
		<a href="#" target="_blank"><img src="./images/resume1.gif" title="创建中文简历"></a>
		<a href="#" target="_blank"><img src="./images/resume2.gif" title="创建英文简历"></a>
	</div>
	
	</div>

	<ul id="viewcv_menu" class="dropmenu_drop" style="display: none;">
		<li><a href="personal.html">我的简历</a></li>
		<li><a href="#">求职信</a></li>
		<li><a href="#">外发简历</a></li>
	</ul>

<div id="sideNav">
	<div class="box">
		<h3>热门企业招聘动态</h3>
		<ul>
			<script type="text/javascript" src="./center_files/api.php"></script><li><a href="http://vip.yingjiesheng.com/newbook/" target="_blank">应届生求职全攻略丛书</a></li>
<li><a href="#" target="_blank">Email订阅本站每日最新校园招聘信息</a></li>
		</ul>
	</div>
	<div class="box">
		<h3>关注应届生微博</h3>
		<ul>
			<embed src="http://tjs.sjs.sinajs.cn/t3/miniblog/static/swf/miniblogwidget.swf" wmode="transparent" quality="high" width="200" height="800" align="L" scale="noborder" flashvars="width=200&amp;height=800&amp;uid=1241330914&amp;skin=skin1" allowscriptaccess="sameDomain" type="application/x-shockwave-flash">
		</ul>
	</div>
</div>

<div id="sourceNav">
	<h2>应届生求职资源快速导航</h2>
	<ul class="s_clear">
		<li><img src="./image/yjs.gif"><a href="#" target="_blank"><strong>应届生首页</strong></a></li>
		<li><img src="./image/discuz.gif"><a href="#" target="_blank"><strong>应届生BBS</strong></a></li>
		<li><img src="./image/search.gif"><a href="#" target="_blank">职位搜索</a></li>
		<li><img src="./image/book.gif"><a href="#" target="_blank">校园宣讲会</a></li>
		<li><img src="./image/date.gif"><a href="#" target="_blank">网申截止日期</a></li>
		<li><img src="./image/zph.gif"><a href="#" target="_blank">招聘会</a></li>
		<li><img src="./image/person.gif"><a href="#" target="_blank">大专生招聘</a></li>
		<li><img src="./image/hot.gif"><a href="#" target="_blank">热门专业(职位)信息</a></li>
		<li><img src="./image/list2.gif"><a href="#" target="_blank">搜索风云榜</a></li>
		<li><img src="./image/guide.gif"><a href="#" target="_blank">求职全程指南</a></li>
		<li><img src="./image/kx.gif"><a href="#" target="_blank">开心应届生</a></li>
		<li><img src="./image/house.gif"><a href="#" target="_blank">求职旅社</a></li>
		<li><img src="./image/record.gif"><a href="#" target="_blank"><strong>简历中心</strong></a></li>
		<li><img src="./image/page.gif"><a href="#" target="_blank">职业测评</a></li>
		<li><img src="./image/task.gif"><a href="#" target="_blank">趣味职业测试</a></li>
		<li><img src="./image/compare.gif"><a href="#" target="_blank">Offer比较分析器</a></li>
		<li><img src="./image/calculator.gif"><a href="#" target="_blank">GPA计算器</a></li>
		<li><img src="./image/salary.gif"><a href="#" target="_blank">工资计算器</a></li>
		<li><img src="./image/sendout.gif"><a href="#" target="_blank">Offer发送机</a></li>
		<li><img src="./image/sms.gif"><a href="#" target="_blank">短信订阅</a></li>
	</ul>
</div>

		</div>
		<div class="clear"></div>
		<div id="bottom"></div>
	</div>

</div>
<div id="footer">
	<div class="inner">
		<p class="r_option"><a href="javascript:;" onclick="window.scrollTo(0,0);" id="a_top" title="TOP">TOP</a></p>
		<div class="floatright"><p class="en">
			Powered by <a href="http://u.discuz.net/" target="_blank"><strong>UCenter Home</strong></a> <span title="20090806">2.0beta</span>
			&#169; 2001-<script>var yjs_now= new Date();document.write(yjs_now.getFullYear())</script>2012 <a href="http://www.comsenz.com/" target="_blank">Comsenz Inc.</a>
		</p></div>
		<p>会员中心 - <a href="mailto:bbs@yingjiesheng.com">联系我们</a></p>
	</div>
</div>

</body></html>